<?php include __DIR__.'/../public/header_m.php';?>
<div class="container mw-700px">
  <div id="titlebar">
    <div class="heading">
      <strong><small class="text-muted"><i class="icon-plus"></i></small> 添加用户组</strong>
    </div>
  </div>
  <form id="dataform" target="hiddenwin" method="post" action="<?php echo $formUrl; ?>" class="form-condensed mw-700px">
    <?php if(isset($id)): ?>
        <input name="data[id]" type="hidden" value="<?php echo $id;?>" />
    <?php endif; ?>
    <table align="center" class="table table-form"> 
      <tbody>
      <tr>
        <th>用户组名</th>
        <td><div class="required required-wrapper"></div><input type="text" autocomplete="off" class="form-control" value="<?php if(isset($groupInfo['group_name'])) echo $groupInfo['group_name']; ?>" id="group_name" name="data[group_name]" placeholder="中文吧">
        </td>
        <td width="150"></td>
      </tr>
      <tr>
        <th>用户组等级</th>
        <td><div class="required required-wrapper"></div><input type="text" autocomplete="off" class="form-control" value="<?php if(isset($groupInfo['level'])) echo $groupInfo['level']; ?>" id="level" name="data[level]" placeholder="数字越高，等级越低">
        </td>
        <td width="150"></td>
      </tr>
      <tr>
        <th>备注</th>
        <td><input type="text" class="form-control" value="<?php if(isset($groupInfo['mark'])) echo $groupInfo['mark']; ?>" id="mark" name="data[mark]">
        </td>
      </tr>
      <tr><th></th><td> <button class="btn btn-submit btn-primary" id="submit" data-submitting="提交中..." type="submit">保存</button><a class="btn btn-back" href="javascript:history.go(-1);">返回</a></td></tr>
    </tbody></table>
  </form>
</div>
<?php include __DIR__.'/../public/footer_m.php';?>